package ch12;

class ThreadEx03 {
	public static void main(String args[]) throws Exception {
		MyThreadEx03_1 t1 = new MyThreadEx03_1();
		t1.run();
	}
}

class MyThreadEx03_1 extends Thread {
	public void run() {
		throwException();
	}

	public void throwException() {
		try {
			throw new Exception();
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
}
/*
java.lang.Exception
at ch12.MyThreadEx03_1.throwException(ThreadEx03.java:17)
at ch12.MyThreadEx03_1.run(ThreadEx03.java:12)
at ch12.ThreadEx03.main(ThreadEx03.java:6)
*/